package cn.bossfriday.im.common.db.entity;

import cn.bossfriday.common.utils.GsonUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * UserInfo
 *
 * @author chenx
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {

    private Long appId;

    private String userId;

    private String userName;

    private String userPortrait;

    private String extension;

    private Timestamp updatedTime;

    private Timestamp regTime;

    private Integer state;

    private String userAgent;


    @Override
    public String toString() {
        return GsonUtil.toJson(this);
    }
}
